<?php
class BookProdcut extends ShopProduct{
	public $numPages;

	function __construct($title,$firstName,$mainName,$price,$numPages=0){
		parent::__construct($title,$firstName,$mainName,$price);
		$this->numPages = $numPages;
	}

	function getNumberOfPages(){
		return $this->numPages;
	}

	function getSummaryLine(){
		$base = parent::getSummaryLine();
		$base .= ": page count - {$this->numPages} pages";
		return $base;
	}

	public function getPrice()
	{
		return $this->price;
	}

}